﻿@{
    Bundle("jquery_validate");
}

<script type="text/javascript">
    jQuery(document).ready(function () {
        jQuery('@ID("#form")').validate({
            rules: {
                email: {
                    required: true,
                    email: true
                },
                password: {
                    required: true
                }
            }
        });
    });
</script>
<form class="common-form" id="@ID("form")" action="@Url.Action(Loc.Act("SignIn").Localized())" method="post">
    <table>
        <tr>
            <td>
                <label>@T(Res.In("Common").Of("Vocab").Name("Email"))</label>
            </td>
            <td>
                <input type="text" name="email" value="@Request.QueryParam("email")" maxlength="100" />
            </td>
        </tr>
        <tr>
            <td>
                <label>@T(Res.Name("Password"))</label>
            </td>
            <td>
                <input type="password" name="password" maxlength="100" />
            </td>
        </tr>
    </table>
    <ul class="bar toolbar">
        <li><button class="button" type="submit">@T(Res.In("Common").Of("Act").Name("Submit"))</button></li>
    </ul>
</form>
